#ifndef FRIENDNOTIFICATIONITEM_H
#define FRIENDNOTIFICATIONITEM_H

#include <QWidget>
#include <QString>
#include <QDateTime>

namespace Ui {
class FriendNotificationItem;
}

class FriendNotificationItem : public QWidget
{
    Q_OBJECT

public:
    explicit FriendNotificationItem(QWidget *parent = nullptr);
    ~FriendNotificationItem();

    QString username() const;
    void setUsername(const QString &newUsername);
    void setType(QString);
    void setTimestamp(QDateTime);

    QString fromId() const;
    void setFromId(const QString &newFromId);

signals:
    void signal_agreeFriendRequest(QString fromId);

private slots:
    void on_pushButton_agree_clicked();

private:
    Ui::FriendNotificationItem *ui;

    QString m_fromId = "";
    QString m_username = "";
};

#endif // FRIENDNOTIFICATIONITEM_H
